package com.irm.service;

import com.gadgets.framework.common.dto.Pagination;
import com.gadgets.framework.common.exception.GadgetsServiceException;
import com.irm.dto.DraftOperDTO;
import com.irm.dto.MockInfoQueryDTO;
import com.irm.dto.MsgLogQueryDTO;
import com.irm.pojo.IrmMockInfo;
import com.irm.pojo.IrmMsgLog;

import java.util.List;

/**
 * @author UncleXiu
 * @version V1.0.0
 * @data 2022-01-20
 */
public interface IDraftOperService {

    /**
     * 操作DraftMock
     * @param draftOperDTO                  操作信息
     * @return                              操作记录数
     * @throws GadgetsServiceException      服务异常
     */
    public int operationDraftMock(DraftOperDTO draftOperDTO) throws GadgetsServiceException;

    /**
     * 查询MockInfo
     * @param mockInfoQueryDTO          查询条件
     * @param pagination                分页条件
     * @return                          查询条件
     * @throws GadgetsServiceException  服务异常
     */
    public List<IrmMockInfo> selectMockInfo(MockInfoQueryDTO mockInfoQueryDTO, Pagination pagination) throws GadgetsServiceException;

    /**
     * 查询MsgLog
     * @param queryDTO                  查询条件
     * @param pagination                分页条件
     * @return                          查询结果
     * @throws GadgetsServiceException  服务异常
     */
    public List<IrmMsgLog> selectMsgLog(MsgLogQueryDTO queryDTO, Pagination pagination) throws GadgetsServiceException;

    /**
     * 查询MsgLog
     * @param queryDTO                  查询条件
     * @param pagination                分页条件
     * @return                          查询结果
     * @throws GadgetsServiceException  服务异常
     */
    public List<IrmMsgLog> selectMsgContent(MsgLogQueryDTO queryDTO, Pagination pagination) throws GadgetsServiceException;

}
